home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 11 / PC World Interactive 11.iso / share / multimed / effect / MakeEffectMovie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-12  |  1.8 KB  |  55 lines

  1. //////////
  2. //
  3. //    File:        MakeEffectMovie.h
  4. //
  5. //    Contains:    QuickTime video effect support for QuickTime movies.
  6. //                This file is used for BOTH MacOS and Windows.
  7. //
  8. //    Written by:    Tim Monroe
  9. //                Based (heavily!) on the previous MakeEffectMovie code written by Sam Bushell.
  10. //
  11. //    Copyright:    ⌐ 1997-1998 by Apple Computer, Inc., all rights reserved.
  12. //
  13. //    Change History (most recent first):
  14. //
  15. //       <1>         11/06/97    rtm        first file; integrated existing code with shell framework
  16. //       
  17. //////////
  18.  
  19. #include "ComApplication.h"
  20. #include <ImageCodec.h>
  21.  
  22. #if TARGET_OS_MAC
  23. #include "MacFramework.h"
  24. #endif
  25.  
  26. #if TARGET_OS_WIN32
  27. #include "WinFramework.h"
  28. #endif
  29.  
  30. #define    BailNil(n)        if (!n) { if (!myErr) myErr = -1; goto bail; }
  31. #define    BailError(n)    if (n) { if (!myErr) myErr = -1; goto bail; }
  32.  
  33. // the maximum number of input tracks we will collect
  34. #define kMaxNumSources                    2
  35.  
  36. // constants
  37. #define kNoSourceName        OSTypeConst('none')
  38. #define kSourceOneName        OSTypeConst('srcA')
  39. #define kSourceTwoName        OSTypeConst('srcB')
  40.  
  41. // the default playback rate of the video effects track
  42. #define kDefaultFramesPerSecond            15
  43.  
  44. // function prototypes
  45.  
  46. OSErr                                QTEffects_GetFirstVideoTrackInMovie (Movie theMovie, Track *theTrack);
  47. OSErr                                QTEffects_DisplayDialogForSources (FSSpec *theSpecList, UInt16 theSpecCount);
  48. void                                QTEffects_RespondToDialogSelection (OSErr theErr);
  49. # if TARGET_OS_WIN32
  50. static void                            QTEffects_EffectsDialogCallback (EventRecord *theEvent, DialogRef theDialog, DialogItemIndex theItemHit);
  51. LRESULT CALLBACK                    QTEffects_CustomDialogWndProc (HWND theWnd, UINT theMessage, UINT wParam, LONG lParam);
  52. #endif
  53. Boolean                                QTEffects_HandleEffectsDialogEvents (EventRecord *theEvent, DialogItemIndex theItemHit);
  54. void                                QTEffects_PromptUserForFilesAndMakeEffect (void);
  55.